package cn.edu.swufe.surverpark.model;

import java.util.HashSet;
import java.util.Set;

/**
 *@author 陈龙 E-mail:529914446@qq.com
 *@version创建时间:2015年4月29日下午3:45:05
 *类说明
 */
public class Page extends BaseEntity{
	/**
	 * 
	 */
	private static final long serialVersionUID = 5035772126052581118L;
	private Integer id;
	private String title = "未命名";
	private String description;
	private float orderno;
	
	//建立从page到survey的多对一关联关系
	private transient Survey survey;
	//建立从page到question的一对多关联关系
	private Set<Question> questions = new HashSet<Question>();
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
		if(id != null)
			this.orderno = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Survey getSurvey() {
		return survey;
	}
	public void setSurvey(Survey survey) {
		this.survey = survey;
	}
	public Set<Question> getQuestions() {
		return questions;
	}
	public void setQuestions(Set<Question> questions) {
		this.questions = questions;
	}
	public float getOrderno() {
		return orderno;
	}
	public void setOrderno(float orderno) {
		this.orderno = orderno;
	}
	
	
}

